

import {
    RECEIVE_ADRESS,
    RECEIVE_CATEGORYS,
    RECEIVE_SHOPLIST,
    RECEIVE_USER
} from './mutations-type'
//直接操作state中的状态
export default {
    [RECEIVE_ADRESS](state, { address }) {
        state.address = address
    },
    [RECEIVE_CATEGORYS](state, { categorys }) {
        state.categorys = categorys
    },
    [RECEIVE_SHOPLIST](state, { shoplist }) {
        state.shopList = shoplist
    },
    [RECEIVE_USER](state,userInfo){
        state.userInfo=userInfo
    }
}